﻿using System.Configuration;
using WS.EKA.Utilities.Core;

namespace WS.EKA.Utilities
{
    public class AppConfig:SingletonBase<AppConfig>,IConfig
    {
        public const string ConnectionKey = "DefaultConnection";
        public string ConnectionString
        {
            get 
            {
                try
                {
                    return ConfigurationManager.ConnectionStrings[ConnectionKey].ConnectionString;
                }catch
                {
                    return "Data Source=(local);Initial Catalog=ShopNum1_DistributionCeShi3;User ID=mobileoa;Password=mobileoa;MultipleActiveResultSets=True";
                }
            }
        }
    }
}
